﻿<!DOCTYPE html>
<html>
<head>
    <title>Groupon Helper for WebMatrix - Reference</title>
    <link href="content/Site.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
</head>
<body>
    <div class="container">
        <div class="header">
            <img src="content/images/webx-icon.png" alt="WebMatrix" />
            <img src="content/images/groupon-logo.png" alt="Groupon Logo" class="partnerLogo" />
            <h1>
                Microsoft WebMatrix Helpers</h1>
            <h2>
                Groupon Helper - Reference</h2>
        </div>
        <div class="content">
            <div class="navLinks">
                <a href="startHere.htm">Start Here</a> | <a href="reference.htm">Helper Reference</a>
            </div>
            <h3>
                Helper Methods</h3>
			<p><em>Note: Current version does not support the full Groupon API.</em></p>
            <table class="memberdecls">
                <tr>
                    <td class="memItemLeft">
                        static void
                    </td>
                    <td class="memItemRight">
                        <strong>Initialize</strong> (string apiKey, [string referralCode])
                    </td>
                </tr>
                <tr>
                    <td class="mdescLeft">
                        &nbsp;
                    </td>
                    <td class="mdescRight">
                        Initializes the Groupon helper.                       
                    </td>
                </tr>              
                <tr>
                    <td class="memItemLeft">
                        @helper
                    </td>
                    <td class="memItemRight">
                        <strong>GetDailyDealWidget</strong> ([string linkColor],
                                    [string textColor],
                                    [string bakgroundColor],
                                    [string titleColor],
                                    [string getItButtonColor],
                                    [string priceTagColor],
                                    [bool roundedCorners],
                                    [string city])
                    </td>
                </tr>
                <tr>
                    <td class="mdescLeft">
                        &nbsp;
                    </td>
                    <td class="mdescRight">
                        Displays a widget with the daily Groupon's deal.
                    </td>
                </tr>
                <tr>
                    <td class="memItemLeft">
                        static IList&lt;<a href="http://sites.google.com/site/grouponapiv2/api-resources/divisions">Division</a>&gt;
                    </td>
                    <td class="memItemRight">
                        <strong>GetDivisions</strong> ([string show])
                    </td>
                </tr>
                <tr>
                    <td class="mdescLeft">
                        &nbsp;
                    </td>
                    <td class="mdescRight">
                        Returns a list of all launched divisions. The 'show' parameter determines which fields of the divisions should be returned. Possible values: default | all | {coma separated fields list}.
                    </td>
                </tr>
                <tr>
                    <td class="memItemLeft">
                        static IList&lt;<a href="http://sites.google.com/site/grouponapiv2/api-resources/deals#index-request">Deal</a>&gt;
                    </td>
                    <td class="memItemRight">
                        <strong>GetDeals</strong> ([string divisionId], [string latitude], [string longitude], [string radius], [string area], [string show])
                    </td>
                </tr>
                <tr>
                    <td class="mdescLeft">
                        &nbsp;
                    </td>
                    <td class="mdescRight">
                        Returns an ordered list of deals that are currently launched for a specific division.
                    </td>
                </tr>
                <tr>
                    <td class="memItemLeft">
                        static <a href="http://sites.google.com/site/grouponapiv2/api-resources/deals#index-request">Deal</a>
                    </td>
                    <td class="memItemRight">
                        <strong>GetDeal</strong> (string dealId, [string show])
                    </td>
                </tr>
                <tr>
                    <td class="mdescLeft">
                        &nbsp;
                    </td>
                    <td class="mdescRight">
                        Shows detailed information about a specified deal.
                    </td>
                </tr>
                <tr><td class="memItemLeft"></td><td class="memItemRight"></td></tr>                            
            </table>           
        </div>
        <ul class="footer">
            <li>We're always looking for <a href="mailto:webapp@microsoft.com">bugs, feedback and
                suggestions!</a></li>
            <li>&copy; 2010-2011 Microsoft Corporation. Powered by IIS Express.</li>
        </ul>
    </div>
</body>
</html>
